package com.wxapp.dispatch.service;

import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = "com.wxapp")
@EnableTransactionManagement
@EnableAsync
@EnableDiscoveryClient
@EnableAutoDataSourceProxy
@EnableRabbit
@EnableFeignClients(basePackages = "com.wxapp.dispatch.api.feign")
public class DispatchStart {
    public static void main(String[] args) {
        SpringApplication.run(DispatchStart.class, args);
    }
}
